package com.zz.tijian.entity.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

/**
 * 查询可用性的数据传输对象，用于根据医院、套餐、起始日期和结束日期查询可用性。
 */
@Data
@ApiModel(description = "查询可用性的数据传输对象，用于根据医院、套餐、起始日期和结束日期查询可用性。")
public class CheckAvailabilityDto {

    @ApiModelProperty(value = "医院编号", example = "1",required = true)
    private Integer hpId;

    @ApiModelProperty(value = "套餐编号", example = "1",required = true)
    private Integer smId;

    @ApiModelProperty(value = "开始日期", example = "2024-06-15",required = true)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate startDate;

    @ApiModelProperty(value = "结束日期", example = "2024-06-30")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate endDate;
}
